<?php
    include './base.php';
    $id = $_POST["id"];
    $sname = $_POST["username"];
    $gender = $_POST["gender"];
    $clazz = $_POST["clazz"];
    $sql = "update student set sname = '$sname',sgender = '$gender',clazz = $clazz where sid = $id";
    mysql_query($sql);
    print_r("修改成功!");
?>